package org.corolla.cloth.entity;

public class Order {


	private int id;
	private String clothStyle;
	private String clothSize;
	private int clothMount;
	private double unitPrice;
	private double totalPriceBySize;
	
	// default constructor
	public Order(){
		
	}
	
	// constructor without id 
	public Order(String clothStyle, String clothSize, int clothMount,
			double unitPrice, double totalPriceBySize) {
		this.clothStyle = clothStyle;
		this.clothSize = clothSize;
		this.clothMount = clothMount;
		this.unitPrice = unitPrice;
		this.totalPriceBySize = totalPriceBySize;
	}
	// full construtor
	public Order(int id, String clothStyle, String clothSize, int clothMount,
			double unitPrice, double totalPriceBySize) {
		this.id = id;
		this.clothStyle = clothStyle;
		this.clothSize = clothSize;
		this.clothMount = clothMount;
		this.unitPrice = unitPrice;
		this.totalPriceBySize = totalPriceBySize;
	}


	
	public void reComputeTotalPrice(){
		this.totalPriceBySize = this.clothMount*this.unitPrice;
	}
	

	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getClothStyle() {
		return clothStyle;
	}
	public void setClothStyle(String clothStyle) {
		this.clothStyle = clothStyle;
	}
	public String getClothSize() {
		return clothSize;
	}
	public void setClothSize(String clothSize) {
		this.clothSize = clothSize;
	}
	public int getClothMount() {
		return clothMount;
	}
	public void setClothMount(int clothMount) {
		this.clothMount = clothMount;
	}
	public double getUnitPrice() {
		return unitPrice;
	}
	public void setUnitPrice(double unitPrice) {
		this.unitPrice = unitPrice;
	}
	public double getTotalPriceBySize() {
		return totalPriceBySize;
	}
	public void setTotalPriceBySize(double totalPriceBySize) {
		this.totalPriceBySize = totalPriceBySize;
	}
	
}
